<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
    <title>vue 监视数据原理-对象</title>
</head>

<body>
    <div id="root">
        <h1>学校：{{name}}</h1>
        <h1>地址：{{addres}}</h1>
    </div>

    <script>
        const vm = new Vue({
            el: '#root',
            data: {
                name: '清华大学',
                addres: '五道口',
                student: {
                    name: '张三',
                    age: '20'
                }
            }
        })
    </script>
</body>

</html>